package strategy.model;

import strategy.service.Compare;

public class Dog implements Compare<Dog> {
    private int food;

    @Override
    public int compare(Dog dog) {
        if (this.food>dog.getFood()){
            return 1;
        }else if (this.food<dog.getFood()){
            return -1;
        }else {
            return 0;
        }
    }

    public Dog() {
    }

    public Dog(int food) {
        this.food = food;
    }

    public int getFood() {
        return food;
    }

    public void setFood(int food) {
        this.food = food;
    }
}
